<?php
/**
 * 餐厅菜品关联视图
 * @author hushuai
 * 
 */
class RDishesViewModel extends ViewModel {
	
	public $viewFields = array(
			
     'Dishes'=>array(
     		'id',
     		'title',
     		'entitle',
     		'abstract',
     		'enabstract',
     		'addtime',
     		'_as'  => 'd',
     		'_type'=> 'left',
      ),
			
     'Rdrelation'=>array(
     		'id'=>'rdid',
     		'restid',
     		'sprice',
     		'mprice',
     		'isgive',
     		'type',
     		'isrecommend',
     		'gnfr',
     		'_as'  => 'r',
     		'_on'  => 'd.id=r.restid'
     	)
   );
	
}
?>